<template>
  <div id="geren">
    <div class="box">
      <ul>
        <li>
          <span @click="del" v-show="img">x</span>
          <p>
            <b v-show="bing">+</b
            ><img src="../assets/imgs/8.jpg" alt="" v-show="img" />
          </p>
        </li>
        <li>
          <h1>
            
             <h4 @click="tuichu" v-if="token" >退出登录</h4>
            <h3 @click="liji" v-else>立即登录</h3>
          </h1>

          <p>积分：0</p>
        </li>
      </ul>
    </div>
    <div class="box1">
      <p><img src="../assets/imgs/8.png" alt="" /></p>
      <p>
        <marquee scrollAmount="7">新上线更稳定的付费快递查询接口</marquee>
      </p>
    </div>
    <div class="box2">
      <span><img src="../assets/imgs/9.png" alt="" /></span>
      <span class="aa">我的订单</span>
      <span class="bb"> <van-icon name="arrow" /></span>
    </div>
    <div class="box3">
      <p>
        <span><img src="../assets/imgs/10.png" alt="" /></span>
        <span>待付款</span>
      </p>
      <p>
        <span><img src="../assets/imgs/11.png" alt="" /></span>
        <span>待发货</span>
      </p>
      <p>
        <span><img src="../assets/imgs/12.png" alt="" /></span>
        <span>待收货</span>
      </p>
      <p>
        <span><img src="../assets/imgs/13.png" alt="" /></span>
        <span>待评价</span>
      </p>
    </div>
    <ol></ol>
    <div class="box4">
      <ul>
        <li>
          <p><img src="../assets/imgs/14.png" /></p>
          <p>我的余额</p>
        </li>
        <li>
          <p><img src="../assets/imgs/15.png" /></p>
          <p>我的砍价</p>
        </li>
        <li>
          <p><img src="../assets/imgs/16.png" /></p>
          <p>我的礼券</p>
        </li>

        <li>
          <p><img src="../assets/imgs/17.png" /></p>
          <p>我的收藏</p>
        </li>
        <li>
          <p><img src="../assets/imgs/18.png" /></p>
          <p>我的地址</p>
        </li>
        <li>
          <p><img src="../assets/imgs/19.png" /></p>
          <p>联系客服</p>
        </li>
      </ul>
    </div>
    <div class="box5">
      <img src="../assets/imgs/20.png" alt="" />
    </div>
  </div>
</template>

<script>
import "../assets/imgs/8.jpg";
import "../assets/imgs/8.png";
export default {
  name: "",
  data() {
    return {
      img: true,
      bing: false,
      token: localStorage.getItem("token"),
    };
  },
  created() {},
  methods: {
    // 去登陆
    liji() {
      this.$router.push('/login')
    },
    // 退出登录
    tuichu() {
      localStorage.removeItem('token')
      this.$router.push('/login')
    },
    del() {
      this.img = false;
      this.bing = true;
    },
  },
};
</script>

<style scoped lang='scss'>
.box5 {
  width: 100%;
  height: 25px;
  img {
    width: 100%;
    height: 100%;
  }
}
.box4 {
  width: 100%;
  height: 190px;
  background-color: #cccc;
  ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: white;

    li {
      margin-top: 10px;
      width: 30%;
      height: 85px;
      // background-color: red;
      text-align: center;
      img {
        width: 50px;
        height: 50px;
      }
      p {
        font-size: 14px;
        margin-top: 5px;
      }
    }
  }
}
ol {
  width: 100%;
  height: 10px;
  list-style: none;
  background-color: #cccc;
}
.box3 {
  width: 100%;
  height: 60px;
  // background-color: red;
  display: flex;
  p {
    flex: 1;
    text-align: center;
    img {
      width: 40px;
      height: 30px;
    }
    span {
      display: block;
      font-size: 14px;
      margin-top: 5px;
      color: #ccc;
    }
  }
}
.box2 {
  width: 100%;
  height: 55px;
  // background-color: red;
  border-bottom: 1px solid #cccc;
  .bb {
    float: right;
    font-size: 24px;
    margin-top: 16px;
    margin-right: 10px;
  }
  .aa {
    margin-top: 20px;
    font-size: 13px;
    margin-left: 5px;
  }
  span {
    float: left;

    img {
      height: 30px;
      height: 30px;
      margin-top: 10px;
      margin-left: 10px;
    }
  }
}
.box1 {
  width: 100%;
  height: 40px;
  // background-color: red;
  display: flex;
  line-height: 40px;
  p:nth-child(2) {
    width: 80%;
    color: #db3b3b;
  }
  p:nth-child(1) {
    width: 10%;
    height: 100%;

    background-color: white;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.box {
  width: 100%;
  height: 150px;
  background-color: #c1b18f;
  ul {
    width: 100%;
    display: flex;
    li:nth-child(1) {
      width: 30%;
      height: 150px;
      position: relative;
      // background-color: red;
      span {
        display: inline-block;
        width: 20px;
        height: 20px;
        background-color: #969799;
        border-radius: 50px;
        text-align: center;
        line-height: 20px;
        position: absolute;
        left: 80px;
        top: 22px;
        color: white;
      }
      p {
        width: 80px;
        height: 80px;
        background-color: white;
        margin-top: 35px;
        margin-left: 20px;
        border-radius: 50px;
        position: relative;
        b {
          position: absolute;
          top: 2px;
          left: 16px;
          font-size: 80px;
          color: #969799;
        }
        img {
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          border-radius: 50px;
          z-index: 99;
        }
      }
    }
    li:nth-child(2) {
      position: relative;
      width: 70%;
      height: 150px;
      // background-color: rgb(67, 67, 71);
     
        height: 120px;
      
        h3 {
          font-size: 20px;
          position: absolute;
           top: 21px;
           left: 10px;
          
          
          color: white;
        }
      
      h4 {
        position: absolute;
        top: 114px;
        left: 10px;
        color: white;
      }

      p {
        width: 85px;
        height: 25px;
        border: 1px solid;
        text-align: center;
        line-height: 25px;
        margin-left: 10px;
        border-radius: 5px;
        color: white;
        position: absolute;
        top: 64px;
        left: 10px;
      }
    }
  }
}
</style>